<?php
/**
 * Created by PhpStorm.
 * User: Lihong
 * Date: 2017/8/26
 * Time: 13:55
 */
use yii\widgets\ActiveForm;
use kartik\file\FileInput;
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use yii\bootstrap\Modal;
use yii\helpers\Url;
?>
<style type="text/css">
    .data-form label{
        color: white;
    }

    .data-form h1,h2,h3{
        color: white;
    }

    .hint-block{
        color: white;
    }
</style>
<?php $form = ActiveForm::begin(); ?>
<div class="row data-form" style="width: 80%; margin: 0px auto; padding-top: 20px; padding-bottom: 20px;background: gray;">
    <h3 style="text-align:center;"><?=$pageTitle?></h3>
    <hr/>
    <div class="col-lg-12">
        <?=$form->field($model, 'username')->hint('用于登陆的账号,长度 5-8 个字符.')->error(false)->textInput()?>
        <?=$form->field($model, 'password')->hint('用户密码, 由数字,字符及特殊字符构成.')->error(false)->passwordInput()?>
        <?=$form->field($model, 'email')->hint('用户邮箱, 由于找回密码, 或者其他验证.')->error(false)->textInput()?>
    </div>
    <div class="col-lg-12">
        <?=Html::submitButton('提交', ['class'=>'btn btn-primary btn-block','name' =>'submit-button'])?>
    </div>
</div>
<?php ActiveForm::end(); ?>
